<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.17"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>TMCStepper: src/source/IHOLD_IRUN.cpp Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">TMCStepper
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.17 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('_i_h_o_l_d___i_r_u_n_8cpp_source.html',''); initResizable(); });
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="headertitle">
<div class="title">IHOLD_IRUN.cpp</div>  </div>
</div><!--header-->
<div class="contents">
<a href="_i_h_o_l_d___i_r_u_n_8cpp.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="_t_m_c_stepper_8h.html">TMCStepper.h</a>&quot;</span></div>
<div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="_t_m_c___m_a_c_r_o_s_8h.html">TMC_MACROS.h</a>&quot;</span></div>
<div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160; </div>
<div class="line"><a name="l00004"></a><span class="lineno"><a class="line" href="_i_h_o_l_d___i_r_u_n_8cpp.html#a6e4f7ba2fdd5a548e9a0383905ada143">    4</a></span>&#160;<span class="preprocessor">#define SET_REG(SETTING) IHOLD_IRUN_register.SETTING = B; write(IHOLD_IRUN_register.address, IHOLD_IRUN_register.sr);</span></div>
<div class="line"><a name="l00005"></a><span class="lineno"><a class="line" href="_i_h_o_l_d___i_r_u_n_8cpp.html#a851c499b52890f1c89886e8cf64a4415">    5</a></span>&#160;<span class="preprocessor">#define GET_REG(SETTING) return IHOLD_IRUN_register.SETTING;</span></div>
<div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160; </div>
<div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;<span class="comment">// IHOLD_IRUN</span></div>
<div class="line"><a name="l00008"></a><span class="lineno"><a class="line" href="class_t_m_c_stepper.html#a597bc308bad0d1198b98c48a6ef34fc3">    8</a></span>&#160;uint32_t <a class="code" href="class_t_m_c_stepper.html#a597bc308bad0d1198b98c48a6ef34fc3">TMCStepper::IHOLD_IRUN</a>() { <span class="keywordflow">return</span> IHOLD_IRUN_register.sr; }</div>
<div class="line"><a name="l00009"></a><span class="lineno"><a class="line" href="class_t_m_c_stepper.html#a223e13cdebad6387c22df3fe918090ac">    9</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="class_t_m_c_stepper.html#a597bc308bad0d1198b98c48a6ef34fc3">TMCStepper::IHOLD_IRUN</a>(uint32_t input) {</div>
<div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;    IHOLD_IRUN_register.sr = input;</div>
<div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;    <a class="code" href="class_t_m_c_stepper.html#a0c59db39db2a63ddae01f0545196edeb">write</a>(IHOLD_IRUN_register.address, IHOLD_IRUN_register.sr);</div>
<div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;}</div>
<div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160; </div>
<div class="line"><a name="l00014"></a><span class="lineno"><a class="line" href="class_t_m_c_stepper.html#acfb32d1b63e9f04badfa64adf99bd991">   14</a></span>&#160;<span class="keywordtype">void</span>    <a class="code" href="class_t_m_c_stepper.html#a5f7f8f6ce7b394449239bc2c05f39c8f">TMCStepper::ihold</a>(uint8_t B)        { <a class="code" href="_i_h_o_l_d___i_r_u_n_8cpp.html#a6e4f7ba2fdd5a548e9a0383905ada143">SET_REG</a>(<a class="code" href="class_t_m_c_stepper.html#a5f7f8f6ce7b394449239bc2c05f39c8f">ihold</a>);       }</div>
<div class="line"><a name="l00015"></a><span class="lineno"><a class="line" href="class_t_m_c_stepper.html#aa82391a803e3103b03fadd9bb597d532">   15</a></span>&#160;<span class="keywordtype">void</span>    <a class="code" href="class_t_m_c_stepper.html#a89f965f7d005e189ef27951f37e699f2">TMCStepper::irun</a>(uint8_t B)         { <a class="code" href="_i_h_o_l_d___i_r_u_n_8cpp.html#a6e4f7ba2fdd5a548e9a0383905ada143">SET_REG</a>(<a class="code" href="class_t_m_c_stepper.html#a89f965f7d005e189ef27951f37e699f2">irun</a>);        }</div>
<div class="line"><a name="l00016"></a><span class="lineno"><a class="line" href="class_t_m_c_stepper.html#a8fdec0d36204fb18b54b07625ef9e85c">   16</a></span>&#160;<span class="keywordtype">void</span>    <a class="code" href="class_t_m_c_stepper.html#a2ed0ad58484a243c27dd3406e1bdc316">TMCStepper::iholddelay</a>(uint8_t B)   { <a class="code" href="_i_h_o_l_d___i_r_u_n_8cpp.html#a6e4f7ba2fdd5a548e9a0383905ada143">SET_REG</a>(<a class="code" href="class_t_m_c_stepper.html#a2ed0ad58484a243c27dd3406e1bdc316">iholddelay</a>);  }</div>
<div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160; </div>
<div class="line"><a name="l00018"></a><span class="lineno"><a class="line" href="class_t_m_c_stepper.html#a5f7f8f6ce7b394449239bc2c05f39c8f">   18</a></span>&#160;uint8_t <a class="code" href="class_t_m_c_stepper.html#a5f7f8f6ce7b394449239bc2c05f39c8f">TMCStepper::ihold</a>()                 { <a class="code" href="_i_h_o_l_d___i_r_u_n_8cpp.html#a851c499b52890f1c89886e8cf64a4415">GET_REG</a>(<a class="code" href="class_t_m_c_stepper.html#a5f7f8f6ce7b394449239bc2c05f39c8f">ihold</a>);       }</div>
<div class="line"><a name="l00019"></a><span class="lineno"><a class="line" href="class_t_m_c_stepper.html#a89f965f7d005e189ef27951f37e699f2">   19</a></span>&#160;uint8_t <a class="code" href="class_t_m_c_stepper.html#a89f965f7d005e189ef27951f37e699f2">TMCStepper::irun</a>()                  { <a class="code" href="_i_h_o_l_d___i_r_u_n_8cpp.html#a851c499b52890f1c89886e8cf64a4415">GET_REG</a>(<a class="code" href="class_t_m_c_stepper.html#a89f965f7d005e189ef27951f37e699f2">irun</a>);        }</div>
<div class="line"><a name="l00020"></a><span class="lineno"><a class="line" href="class_t_m_c_stepper.html#a2ed0ad58484a243c27dd3406e1bdc316">   20</a></span>&#160;uint8_t <a class="code" href="class_t_m_c_stepper.html#a2ed0ad58484a243c27dd3406e1bdc316">TMCStepper::iholddelay</a>()            { <a class="code" href="_i_h_o_l_d___i_r_u_n_8cpp.html#a851c499b52890f1c89886e8cf64a4415">GET_REG</a>(<a class="code" href="class_t_m_c_stepper.html#a2ed0ad58484a243c27dd3406e1bdc316">iholddelay</a>);  }</div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<div class="ttc" id="a_t_m_c_stepper_8h_html"><div class="ttname"><a href="_t_m_c_stepper_8h.html">TMCStepper.h</a></div></div>
<div class="ttc" id="aclass_t_m_c_stepper_html_a2ed0ad58484a243c27dd3406e1bdc316"><div class="ttname"><a href="class_t_m_c_stepper.html#a2ed0ad58484a243c27dd3406e1bdc316">TMCStepper::iholddelay</a></div><div class="ttdeci">uint8_t iholddelay()</div><div class="ttdef"><b>Definition:</b> <a href="_i_h_o_l_d___i_r_u_n_8cpp_source.html#l00020">IHOLD_IRUN.cpp:20</a></div></div>
<div class="ttc" id="aclass_t_m_c_stepper_html_a0c59db39db2a63ddae01f0545196edeb"><div class="ttname"><a href="class_t_m_c_stepper.html#a0c59db39db2a63ddae01f0545196edeb">TMCStepper::write</a></div><div class="ttdeci">virtual void write(uint8_t, uint32_t)=0</div></div>
<div class="ttc" id="a_t_m_c___m_a_c_r_o_s_8h_html"><div class="ttname"><a href="_t_m_c___m_a_c_r_o_s_8h.html">TMC_MACROS.h</a></div></div>
<div class="ttc" id="aclass_t_m_c_stepper_html_a89f965f7d005e189ef27951f37e699f2"><div class="ttname"><a href="class_t_m_c_stepper.html#a89f965f7d005e189ef27951f37e699f2">TMCStepper::irun</a></div><div class="ttdeci">uint8_t irun()</div><div class="ttdef"><b>Definition:</b> <a href="_i_h_o_l_d___i_r_u_n_8cpp_source.html#l00019">IHOLD_IRUN.cpp:19</a></div></div>
<div class="ttc" id="a_i_h_o_l_d___i_r_u_n_8cpp_html_a851c499b52890f1c89886e8cf64a4415"><div class="ttname"><a href="_i_h_o_l_d___i_r_u_n_8cpp.html#a851c499b52890f1c89886e8cf64a4415">GET_REG</a></div><div class="ttdeci">#define GET_REG(SETTING)</div><div class="ttdef"><b>Definition:</b> <a href="_i_h_o_l_d___i_r_u_n_8cpp_source.html#l00005">IHOLD_IRUN.cpp:5</a></div></div>
<div class="ttc" id="a_i_h_o_l_d___i_r_u_n_8cpp_html_a6e4f7ba2fdd5a548e9a0383905ada143"><div class="ttname"><a href="_i_h_o_l_d___i_r_u_n_8cpp.html#a6e4f7ba2fdd5a548e9a0383905ada143">SET_REG</a></div><div class="ttdeci">#define SET_REG(SETTING)</div><div class="ttdef"><b>Definition:</b> <a href="_i_h_o_l_d___i_r_u_n_8cpp_source.html#l00004">IHOLD_IRUN.cpp:4</a></div></div>
<div class="ttc" id="aclass_t_m_c_stepper_html_a597bc308bad0d1198b98c48a6ef34fc3"><div class="ttname"><a href="class_t_m_c_stepper.html#a597bc308bad0d1198b98c48a6ef34fc3">TMCStepper::IHOLD_IRUN</a></div><div class="ttdeci">uint32_t IHOLD_IRUN()</div><div class="ttdef"><b>Definition:</b> <a href="_i_h_o_l_d___i_r_u_n_8cpp_source.html#l00008">IHOLD_IRUN.cpp:8</a></div></div>
<div class="ttc" id="aclass_t_m_c_stepper_html_a5f7f8f6ce7b394449239bc2c05f39c8f"><div class="ttname"><a href="class_t_m_c_stepper.html#a5f7f8f6ce7b394449239bc2c05f39c8f">TMCStepper::ihold</a></div><div class="ttdeci">uint8_t ihold()</div><div class="ttdef"><b>Definition:</b> <a href="_i_h_o_l_d___i_r_u_n_8cpp_source.html#l00018">IHOLD_IRUN.cpp:18</a></div></div>
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li><li class="navelem"><a class="el" href="dir_94e7a0fbe7f8eaf7f05ee7b02c647e9f.html">source</a></li><li class="navelem"><a class="el" href="_i_h_o_l_d___i_r_u_n_8cpp.html">IHOLD_IRUN.cpp</a></li>
    <li class="footer">Generated by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.17 </li>
  </ul>
</div>
</body>
</html>
